const { getOne } = require('../utils/dbTools')

const tableName = 'role'

/**
 * 查询角色权限
 * @param {number} id 角色id
 * */

const getRolePermission = async (id) => {
    const result = await getOne(tableName, { id })
    return result
}

module.exports = {
    getRolePermission
}